﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="NewDefault.aspx.cs" Inherits="manager_task_NewDefault" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>发布任务</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="Server">
    <section class="content-header">
        <h1>任务相关
            <small>发布任务</small>
        </h1>
        <ol class="breadcrumb">
            <li><a><i class="fa fa-dashboard"></i>主页</a></li>
            <li><a href="userManager.aspx">任务相关</a></li>
            <li class="active">发布任务</li>
        </ol>
    </section>

    <section class="content">

        <div class="box box-primary">
            <div class="box-header with-border">
                <h3 class="box-title">发布任务</h3>
            </div>
            <div class="box-header with-border">
                <div>
                    <div class="col-md-12">
                        <a class="btn btn-success" href="NewDefaultAdd.aspx?taskid=0">发布任务</a>
                    </div>
                </div>
            </div>
            <div class="box-body">
                <table id="userManagerList" class="table table-bordered table-striped">
                    <thead>
                        <tr>
                            <th></th>
                            <th>标题</th>
                            <th>考核部门</th>                            
                            <th>被考核部门</th>                         
                            <th>结束时间</th>
                            <th>完成否</th>
                            <th>状态</th>
                            <th>操作</th>

                        </tr>
                    </thead>
                    <tbody>
                        <asp:Repeater ID="rptDeApply_1" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td><%# Eval("id") %></td>
                                    <td class="col-sm-5"><%# Eval("title") %></td>
                                    <td class="col-sm-1"><%# Eval("Bm_Kh_Mc") %>|<%# Eval("Ry_Kh_Mc") %></td>
                                    <td class="col-sm-1"><%# Eval("Bm_Bkh_Mc") %>|<%# Eval("Ry_Bkh_Mc") %></td>  
                                    <td class="col-sm-1"><%# Eval("rq_yjs") %></td>
                                    <td class="col-sm-1"><%# SQ_Eval_Pub.GetTaskState_Task(Eval("task_state").ToString()) %></td>
                                    <td class="col-sm-1"><%# SQ_Eval_Pub.GetTaskState(Eval("state").ToString()) %></td>
                                    <td class="col-sm-1"><a style="cursor: pointer;" href="NewDefaultAdd.aspx?taskid=<%# Eval("ID") %>">修改</a></td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </tbody>
                </table>
            </div>
        </div>
    </section>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptPlaceHolder" runat="Server">
    <script>
        $(document).ready(function () {
            $("#userManagerList").DataTable(
                {
                    "columnDefs": [
                        { "targets": [0], "visible": false }
                    ],
                    "autoWidth": true,
                    "ordering": false,
                    "scroll": true,
                    "language": {
                        "url": "/reference/plugins/datatables/Chinese.json"
                    }
                });
        });
    </script>
</asp:Content>


